<?php
namespace Nawa\Survey\Question\Renderer;
/**
 * Radio - Survey Question Renderer  
 * This Radio render will display all anwser as
 * a radio button group
 * 
 * @author Xavier VILAIN
 * @package Nawa\Survey\Question\Renderer
 * @license #license-nawa-survey#
 * 
 */
class Input implements \Nawa\Survey\Question\Renderer {
	
	/**
	 * Return the question rendered as a string
	 * 
	 * @return string
	 */
	public function render($question,$default = null,$readonly = false) {
		$input = new \Fox\Html\TextArea(array('comments','qa_'.$question->questionid),false,$default);
		$input->label(null,true);
		return $input->display();
	}
}